home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / Prograph Classic 2.6.1 / Prograph Reference Manual / Prograph Reference 5-7 / Prograph Reference 5-7.rsrc / TEXT_155.txt < prev    next >
Encoding:
Text File  |  1995-10-25  |  2.5 KB  |  123 lines

  1.  
  2. Bit
  3.  
  4.  
  5. _________________________________________________
  6.  
  7.                          bit-and      *260*
  8.  
  9.  
  10. Input types: integer;  integer
  11.  
  12. Output types: integer
  13.  
  14. Description:     OutBits is the bitwise AND of InBits1 and InBits2.
  15.  
  16. See also:  bit-or, bit-xor, bit-not, bit-shift-l, bit-shift-r
  17.  
  18.  
  19. _________________________________________________
  20.  
  21.                                  bit-not     *260*
  22.  
  23.  
  24. Input types: integer
  25.  
  26. Output types: integer
  27.  
  28. Description:     OutBits is the bitwise complement of InBits.
  29.  
  30. See also:  bit-or, bit-xor, bit-and, bit-shift-l, bit-shift-r
  31.  
  32.  
  33. _________________________________________________
  34.  
  35.                                bit-or     *260*
  36.  
  37.  
  38. Input types: integer;  integer
  39.  
  40. Output types: integer
  41.  
  42. Description:     OutBits is the bitwise OR of InBits1 and InBits2.
  43.  
  44. See also:  bit-and, bit-xor, bit-not, bit-shift-l, bit-shift-r
  45.  
  46.  
  47. _________________________________________________
  48.  
  49.                                bit-shift-l     *261*
  50.  
  51.  
  52. Input types: integer;  integer
  53.  
  54. Output types: integer
  55.  
  56. Description:     Performs a bitwise shift left by N bits on InBits. The rightmost N bits of OutBits are each 0.
  57.  
  58. See also:  bit-and, bit-or, bit-xor, bit-not, bit-shift-r
  59.  
  60.  
  61. _________________________________________________
  62.  
  63.                                bit-shift-r     *261*
  64.  
  65.  
  66. Input types: integer;  integer
  67.  
  68. Output types: integer
  69.  
  70. Description:     Performs a bitwise shift right by N bits on InBits. The leftmost N bits of OutBits are each 0.
  71.  
  72. See also:  bit-and, bit-or, bit-xor, bit-not, bit-shift-l
  73.  
  74.  
  75. _________________________________________________
  76.  
  77.                                    bit-xor     *261*
  78.  
  79.  
  80. Input types: integer;  integer
  81.  
  82. Output types: integer
  83.  
  84. Description:     OutBits is the bitwise XOR of InBits1 and InBits2. 
  85.  
  86. See also:  bit-and, bit-or, bit-not, bit-shift-r, bit-shift-l
  87.  
  88.  
  89. _________________________________________________
  90.  
  91.                                     test-all?     *262*
  92.  
  93.  
  94. Input types: integer; integer
  95.  
  96. Output types: boolean
  97.  
  98. Description: Result is TRUE if all of Value‚Äôs set bits correspond to Mask‚Äôs set bits.
  99.  
  100.  
  101. _________________________________________________
  102.  
  103.                                      test-bit?     *262*
  104.  
  105.  
  106. Input types: integer; integer
  107.  
  108. Output types: boolean
  109.  
  110. Description: Result is TRUE if the bit in Value at BitPosition is set.
  111.  
  112.  
  113. _________________________________________________
  114.  
  115.                                       test-one?     *262*
  116.  
  117.  
  118. Input types: integer; integer
  119.  
  120. Output types: boolean
  121.  
  122. Description: Result is TRUE if one of Value‚Äôs set bits corresponds to one of Mask‚Äôs set bits.
  123.